package com.share.shrimpcolo.shoot03.sync;

public class Fire implements Runnable{
	private boolean flag = true;
	Clip clip = null;
	
	Fire(Clip clip) {
		this.clip = clip;
	}
	
	@Override
	public void run() {
		//System.out.println("===> Fire runnable run() 1111");
		while(flag) {
			if(clip != null) {
				for(int i = 0; i < 12; i++) {
					//System.out.println("===> Fire runnable run() 2222");
					clip.use();
				}
				if(clip.getmClipNum() == 0) {
					flag = false;
				}
			}
		}//end while
	}
	

}
